//
//  NewTiXianFinishViewController.m
//  wangzhe
//
//  Created by 李 佳伟 on 2018/4/11.
//  Copyright © 2018年 李 佳伟. All rights reserved.
//

#import "NewTiXianFinishViewController.h"
#import "JTCSM.h"
#import "MyInfoView.h"
static CGFloat myinfoHeight = 50;
@interface NewTiXianFinishViewController ()<UINavigationControllerDelegate>
@property (nonatomic,strong) UILabel *statusLabel;
@property (nonatomic,strong) UILabel *moneyLabel;
@end

@implementation NewTiXianFinishViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = RGBACOLOR(241, 241, 241, 1);
    self.navigationController.delegate = self;
    // Do any additional setup after loading the view.
    [self layoutSubview];
}

- (void)layoutSubview{
    CGFloat imagesize = 100;
    UIImageView *logoimagev = [[UIImageView alloc]initWithFrame:CGRectMake((KCONTROLLERWith-imagesize)/2, 110, imagesize, imagesize)];
    logoimagev.image = [UIImage imageNamed:@"loginLOGO.png"];
    [self.view addSubview:logoimagev];
    
    self.statusLabel = [UILabel initWithFrame:CGRectMake(0, KVIEW_Y(logoimagev)+20, KCONTROLLERWith, 30) text:@"提现申请已提交" font:17 textAlignment:NSTextAlignmentCenter texcolor:[df colorWithHexString:@"333333" alpha:1] backgroundColor:nil];
    [self.view addSubview:self.statusLabel];
    
    NSArray *array = @[@"到账金额",@"手续费",@"银行卡",@"预计到账时间"];
    NSArray *contentarray = @[@"¥4500.00",@"¥45.00",@"中信银行（8754）",@"2018-04-11 11:14"];
    MyInfoView *view1;
    for (int i = 0; i < array.count; i++) {
       view1 = [[MyInfoView alloc]initWithFrame:CGRectMake(0, KVIEW_Y(self.statusLabel)+47+myinfoHeight*i, KCONTROLLERWith, myinfoHeight) imagename:nil title:array[i]placeholder:nil isShowLabel:labelType radioBtnIndex:0 GroupId:@""];
        view1.backgroundColor = [UIColor whiteColor];
        view1.label.textColor = [df colorWithHexString:@"999999" alpha:1];
        view1.footerLabel.textColor = [df colorWithHexString:@"333333" alpha:1];
        view1.footerLabel.text = contentarray[i];
        [self.view addSubview:view1];
    }
    
    UIButton *tijiaobutton = [UIButton buttonWithType:UIButtonTypeCustom];
    tijiaobutton.frame = CGRectMake(25, KVIEW_Y(view1)+34, KCONTROLLERWith-40, 50);
    [tijiaobutton addTarget:self action:@selector(tijiao) forControlEvents:UIControlEventTouchUpInside];
    [df layerWithView:tijiaobutton radius:25 width:0 color:nil];
    tijiaobutton.backgroundColor = KZhuTiRGB;
    [tijiaobutton setTitleColor:RGBACOLOR(51, 51, 51, 1) forState:UIControlStateNormal];
    [tijiaobutton setTitle:@"完成" forState:UIControlStateNormal];
    [self.view addSubview:tijiaobutton];
}

- (void)tijiao{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
// 将要显示控制器
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
    // 判断要显示的控制器是否是自己
    BOOL isShowHomePage = [viewController isKindOfClass:[self class]];
    
    [self.navigationController setNavigationBarHidden:isShowHomePage animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
